package com.rabbitmq.service;


import com.yx.tool.Response;

import java.io.IOException;

/**
 * @author yinxing
 * @date 2022-08-30
 */
public interface RabbitService {
    /**
     * rabbitmq发送消息
     * @param route_key
     * @param exchange_name
     * @return
     * @throws IOException
     */
    public Response sendMessage(String exchange_name, String route_key,String message) throws IOException;

}
